import Vue from 'vue'
import Router from 'vue-router'
// element组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// swiper轮播组件
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
// 视频播放组件
import VueVideoPlayer from 'vue-video-player'
import 'video.js/dist/video-js.css'
import home from "./views/home.vue"
import about from './views/about.vue'
import addme from './views/addme.vue'

Vue.use(Router)
Vue.use(ElementUI)
Vue.use(VueAwesomeSwiper)
Vue.use(VueVideoPlayer)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {path:"/", component:home},
    {path:'/about', name:"about", component:about},
    {path:'/addme', name:"addme", component:addme}
  ]
})
